package wyu.service.feign;

import com.entity.PostBar;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient("postBar-provider")
@RequestMapping("/postBar")
public interface PostBarFeign {
    @GetMapping("/getListByIdList")
    List<PostBar> getListByIdList(@RequestParam("idList")List<Integer> list);
    @GetMapping("/getById")
    PostBar getById(@RequestParam("barId")int id);
}
